﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Sdk.WeiXin.Domain.Map
{

    /// <summary>
    /// IP定位信息
    /// </summary>
    public class IpResult
    {
        /// <summary>
        /// IP坐标
        /// </summary>
        public Location location { get; set; }
        /// <summary>
        /// IP区域
        /// </summary>
        public IPRegion ad_info { get; set; }
    }
    /// <summary>
    /// IP坐标
    /// </summary>
    public class Location
    {
        /// <summary>
        /// 
        /// </summary>
        public double lng { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double lat { get; set; }
    }

    /// <summary>
    /// IP定位信息
    /// </summary>
    public class IPRegion
    {
        /// <summary>
        /// 省份 
        /// </summary>
        public string province { get; set; } = string.Empty;
        /// <summary>
        /// 城市 
        /// </summary>
        public string city { get; set; } = string.Empty;
        /// <summary>
        /// 区县
        /// </summary>
        public string district { get; set; } = string.Empty;
        /// <summary>
        /// 区域编码
        /// </summary>
        public string adcode { get; set; } = string.Empty;
    }
}
